package ${serviceImplPackage};

import javax.annotation.Resource;

import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Component;
import ${daoPackage}.${className}Dao;
import ${domainPackage}.${className}Entity;
import ${servicePackage}.${className}Service;

/**
 * 描述：${codeName}
 * @author: ${author}
 * @since：${nowDate}
 * @version:1.0
 */

@Transactional
@Component
public class ${className}ServiceImpl implements ${className}Service {

	@Resource(name = "${lowerName}Dao")
	private ${className}Dao ${lowerName}Dao;


	public ${className}Entity get${className}(String ${tableId}) {
		return ${lowerName}Dao.get(${tableId});
	}

	public int update${className}(${className}Entity ${lowerName}) {
		return ${lowerName}Dao.update(${lowerName});
	}

	public void insert${className}(${className}Entity ${lowerName}) {
		${lowerName}Dao.insert(${lowerName});
		
	}

	public MiniDaoPage<${className}Entity> get${className}All(${className}Entity ${lowerName}, int page, int rows) {
		return ${lowerName}Dao.getAll(${lowerName}, page, rows);
	}

	public void delete${className}(${className}Entity ${lowerName}) {
		${lowerName}Dao.delete(${lowerName});
		
	}
}
